#!/bin/bash


# /24 = 0
# /25 = 128
# /26 = 192
# /27 = 224
# /28 = 240
# /29 = 248
# /30 = 252

# Tel Server:
# Pertenece a la red E por tap1 y a P por tap2

# Tablas de ruteo
# La red D no existe
# Redes G, H, I, K, F son PPP
# Salen por R14: 10.134.13.133

# Por la red P no se comunica con ninguna otra

# Por la red E: idem host B
# Salen por R7: 10.134.1.2
# Red A
route add -net 10.9.12.192 netmask 255.255.255.224 gw 10.134.1.2
# Red B
route add -net 10.11.23.0 netmask 255.255.255.0 gw 10.134.1.2  
# Red C
route add -net 192.168.53.0 netmask 255.255.255.0 gw 10.134.1.2 

# Salen por VRRP entre R8 y R9: 10.134.1.5
# Red J 
route add -net 10.134.13.192 netmask 255.255.255.224 gw 10.134.1.5
# Red L
route add -net 10.9.1.224 netmask 255.255.255.224 gw 10.134.1.5
# Red M
route add -net 10.11.22.0 netmask 255.255.255.0 gw 10.134.1.5
# Red N
route add -net 10.134.13.16 netmask 255.255.255.240 gw 10.134.1.5
# Red O
route add -net 10.134.13.128 netmask 255.255.255.192 gw 10.134.1.5


# Para el telnetserver en la red P: 
# sale todo por R9 10.134.5.131 y usa tap2

# Red A
#route add -net 10.9.12.192 netmask 255.255.255.224 gw 10.134.5.131 tap2
# Red B
#route add -net 10.11.23.0 netmask 255.255.255.0 gw 10.134.5.131 tap2
# Red C
#route add -net 192.168.53.0 netmask 255.255.255.0 gw 10.134.5.131 tap2 
# Red E
#route add -net 10.134.1.0 netmask 255.255.255.0 gw 10.134.5.131 tap2
# Red J 
#route add -net 10.134.13.192 netmask 255.255.255.224 gw 10.134.5.131 tap2
# Red L
#route add -net 10.9.1.224 netmask 255.255.255.224 gw 10.134.5.131 tap2
# Red M
#route add -net 10.11.22.0 netmask 255.255.255.0 gw 10.134.5.131 tap2
# Red N
#route add -net 10.134.13.16 netmask 255.255.255.240 gw 10.134.5.131 tap2
# Red O
#route add -net 10.134.13.128 netmask 255.255.255.192 gw 10.134.5.131 tap2
